package org.eece262.taskshareserver;

import com.google.appengine.api.datastore.Key;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class UserUUIDPair {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String Username;
    
    @Persistent
    private String uuid;
    
    @Persistent
    private long time;

    public UserUUIDPair(String username, String uuID) {
        Username = username;
        uuid = uuID;
        time = System.currentTimeMillis();
    }
    
	public Key getKey() {
        return key;
    }

    public String getUsername() {
        return Username;
    }

    public String getUUID() {
        return uuid;
    }

    public void setUsername(String username) {
        this.Username = username;
    }

    public void setUUID(String uuID) {
        this.uuid = uuID;
    }

	public long getTime() {
		return time;
	}

	public void setTime(long time) {
		this.time = time;
	}
}